//
//  UIImage+Stream.h
//  Pods
//
//  Created by SY on 2019/1/23.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface UIImage (Stream)
+ (UIImage *)imageFromSampleBuffer:(CMSampleBufferRef)sampleBuffer;
+ (UIImage *)getImageStream:(CVImageBufferRef)imageBuffer;
+ (UIImage *)getSubImage:(CGRect)rect inImage:(UIImage*)image;

-(UIImage *)originalImage;
- (UIImage *) imageWithTintColor:(UIColor *)tintColor;
@end
